package com.ruoyi.nuclein.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.basicdata.domain.Building;
import com.ruoyi.basicdata.domain.Resident;
import com.ruoyi.basicdata.domain.Village;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户核酸时间表对象 nuclein_residentmission
 * 
 * @author ruoyi
 * @date 2023-04-10
 */
public class Residentmission extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 小区id */
    @Excel(name = "小区id")
    private Long villageId;

    /** 楼栋id */
    @Excel(name = "楼栋id")
    private Long buildingId;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    /** 住户id */
    @Excel(name = "住户id")
    private Long residentId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 检测位置 */
    @Excel(name = "检测位置")
    private String checkAddress;

    /** 检测时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检测时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    /** 楼栋核酸任务id */
    @Excel(name = "楼栋核酸任务id")
    private Long nucleinMissionId;

    private Village village;
    private Building building;
    private Resident resident;
    private Mission mission;


    public Mission getMission() {
        return mission;
    }

    public void setMission(Mission mission) {
        this.mission = mission;
    }

    public Village getVillage() {
        return village;
    }

    public void setVillage(Village village) {
        this.village = village;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    public Resident getResident() {
        return resident;
    }

    public void setResident(Resident resident) {
        this.resident = resident;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVillageId(Long villageId) 
    {
        this.villageId = villageId;
    }

    public Long getVillageId() 
    {
        return villageId;
    }
    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId()
    {
        return buildingId;
    }

    public void setState(Long state)
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setResidentId(Long residentId) 
    {
        this.residentId = residentId;
    }

    public Long getResidentId() 
    {
        return residentId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCheckAddress(String checkAddress) 
    {
        this.checkAddress = checkAddress;
    }

    public String getCheckAddress() 
    {
        return checkAddress;
    }
    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }
    public void setNucleinMissionId(Long nucleinMissionId) 
    {
        this.nucleinMissionId = nucleinMissionId;
    }

    public Long getNucleinMissionId() 
    {
        return nucleinMissionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("villageId", getVillageId())
            .append("buildingId", getBuildingId())
            .append("state", getState())
            .append("residentId", getResidentId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("checkAddress", getCheckAddress())
            .append("checkTime", getCheckTime())
            .append("nucleinMissionId", getNucleinMissionId())
            .toString();
    }
}
